home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / g_quake / server1.zip / _PLYSTAT.QC < prev    next >
Text File  |  1996-09-04  |  1KB  |  48 lines

  1. /*
  2. **
  3. ** _plystat.qc (PlayerStatus Code, 1.0)
  4. **
  5. ** Copyright (C) 1996 Johannes Plass
  6. ** 
  7. ** This program is free software; you can redistribute it and/or modify
  8. ** it under the terms of the GNU General Public License as published by
  9. ** the Free Software Foundation; either version 2 of the License, or
  10. ** (at your option) any later version.
  11. ** 
  12. ** This program is distributed in the hope that it will be useful,
  13. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. ** GNU General Public License for more details.
  16. **
  17. ** You should have received a copy of the GNU General Public License
  18. ** along with this program; if not, write to the Free Software
  19. ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. ** 
  21. ** Author:   Johannes Plass (plass@dipmza.physik.uni-mainz.de)
  22. **
  23. */
  24.  
  25. void(entity player,float flag) PlayerStatusSetFlag =
  26. {
  27.    player.player_status = player.player_status | flag;
  28. };
  29.  
  30. void(entity player,float flag) PlayerStatusRemoveFlag =
  31. {
  32.    player.player_status = player.player_status - (player.player_status & flag);
  33. };
  34.  
  35. float(entity player) PlayerStatusPlayerIsBogusPlayer =
  36. {
  37.    if (player.player_status & PLAYER_DISCONNECTED) {
  38.       return(1);
  39.    } else if (player.netname == string_null) {
  40.       return(1);
  41.    } else if (player.netname == "") {
  42.       return(1);
  43.    }
  44.    return(0);
  45. };
  46.  
  47.  
  48.